#==========================================================================
# Copyright (c) 2000-2008,  Elastos, Inc.  All Rights Reserved.
#==========================================================================

LINK_FLAGS= \
            --script $(MAKEDIR)\eldr.ld \

LIBRARIES= \
    $(XDK_USER_LIB)\asm.lib \
    $(XDK_USER_LIB)\xllp.lib \
    $(XDK_USER_LIB)\misc.lib \
    $(XDK_USER_LIB)\libpub.lib \

$(SPECIAL_TARGET) : $(LIBRARIES)
	ld $(LINK_FLAGS) --start-group $(LIBRARIES) --end-group -o $(SPECIAL_TARGET)
	@echo Generating eldr.bin ...
	objcopy -O binary -S eldr.exe eldr.bin
	copy eldr.* $(XDK_TARGETS)\
